//
//  TB_TableView.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/10/9.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "TB_TableView.h"

@implementation TB_TableView

-(instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style
{
    if (self=[super initWithFrame:frame style:style]) {
     
        self.backgroundColor=TBColorTableViewBg;
        
         if (@available(iOS 11.0, *)) {
             self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
             self.scrollIndicatorInsets = self.contentInset;
             self.estimatedRowHeight = 0;
             self.estimatedSectionHeaderHeight = 0;
             self.estimatedSectionFooterHeight = 0;
        }

    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
